package com.littlebee.storysuper.common.model;

import com.geepi.netmodule.RetrofitManager;
import com.littlebee.storysuper.common.api.StoryInfoApi;
import com.littlebee.storysuper.utils.ToastUtil;

/**
 * Created by liaoyong on 11/11/2017.
 */

public abstract class BaseModel<T> {
    String host = "http://www.baidu.com";
    public T apiService;

    public BaseModel() {
        RetrofitManager retrofitManager = new RetrofitManager(host);
        apiService = (T) retrofitManager.createReq(StoryInfoApi.class);
    }

    public void load() {
        sendNetworkRequest();
    }

    public abstract void sendNetworkRequest();
}
